// 扶正器安放

// 导入封装好的网络请求类工具
import request from '../../../../../utils/request';
// 封装各种接口请求
// export const 接口名 = () => Network.get('/路由',参数对象);

//扶正器安放-编辑保存数据
export const CentralizerUpdate = (form) => {
    return request({
        url: '/centralizer/centralizerUpdate',
        method: 'put',
        data: form
    })
}

//分页查询
export const FindCentralizer = (wellName,current,size) => {
    return request({
        url: `/centralizer/findCentralizerByPage/${wellName}/${current}/${size}`,
        method: 'get',
        
    })
}

export const importExcel = (file) => {
    return request({
        url: `/excel/importExcel/${tableName}`,
        method: 'post',
        
    })
}


//扶正器安放-删除数据
export const CentralizerDelete = (id) => {
    return request({
        url: `/centralizer/centralizerDelete/${id}`,
        method: 'delete'
    })
}

//扶正器安放-查询数据
export const FindCentralizerByCondition = (searchModel) => {
    return request({
        url: '/centralizer/findCentralizerByCondition',
        method: 'post',
        data: searchModel
    })
}

//扶正器安放-新增数据
export const CentralizerAdd = (form) => {
    return request({
        url: '/centralizer/centralizerAdd',
        method: 'post',
        data: form
    })
}